$OpenBSD: patch-CMakeLists_txt,v 1.2 2015/05/19 13:40:41 bcallah Exp $
--- CMakeLists.txt.orig	Mon May  4 12:50:37 2015
+++ CMakeLists.txt	Mon May 18 23:49:38 2015
@@ -125,7 +125,7 @@ else (APPLE)
       set(CMAKE_CXX_FLAGS_RELEASE "-std=gnu++0x -mno-ms-bitfields -O2 -DNDEBUG -DQT_NO_DEBUG")
    else (MINGW)
       set(CMAKE_CXX_FLAGS_DEBUG   "-std=c++11 -fPIC -fPIE -g")
-      set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fPIC -O2 -DNDEBUG -DQT_NO_DEBUG")
+      set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fPIC -DNDEBUG -DQT_NO_DEBUG")
    endif (MINGW)
 endif(APPLE)
 
@@ -179,11 +179,11 @@ SET(QT_USE_QTHELP        TRUE)
 ## alsa >= 1.0.0
 ##
 
-if (APPLE OR MINGW)
+if (APPLE OR MINGW OR UNIX)
       message("Disabling ALSA support due to OS X or MINGW build.")
       set (USE_ALSA 0)
       set (HAS_MIDI 1)
-else (APPLE OR MINGW)
+else (APPLE OR MINGW OR UNIX)
       PKGCONFIG (alsa 1.0.0 ALSA_INCDIR ALSA_LIBDIR ALSA_LIB ALSA_CPP )
       if (NOT ALSA_INCDIR)
             message(FATAL_ERROR "Fatal error: ALSA >= 1.0.0 required")
@@ -192,7 +192,7 @@ else (APPLE OR MINGW)
             set (USE_ALSA 1)
             set (HAS_MIDI 1)
       endif (NOT ALSA_INCDIR)
-endif (APPLE OR MINGW)
+endif (APPLE OR MINGW OR UNIX)
 
 ##
 ## pulseaudio
@@ -202,8 +202,8 @@ if (APPLE OR MINGW)
       set (USE_PULSEAUDIO 0)
 else (APPLE OR MINGW)
       if (PULSEAUDIO_FOUND)
-            set(USE_PULSEAUDIO 1)
-            message("Pulseaudio found.")
+            set(USE_PULSEAUDIO 0)
+            message("Pulseaudio not used.")
       else (PULSEAUDIO_FOUND)
             set(USE_PULSEAUDIO 0)
             message("Pulseaudio not found.")
@@ -378,11 +378,11 @@ add_custom_command(
     DEPENDS ${PROJECT_SOURCE_DIR}/all.h
     WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
     )
-if (MINGW)
+if (MINGW OR UNIX)
   set(BUILD_PCH false)
-else (MINGW)
+else (MINGW OR UNIX)
   set(BUILD_PCH true)
-endif(MINGW)
+endif(MINGW OR UNIX)
 
 precompiled_header(QT_INCLUDES all ${BUILD_PCH})
 
@@ -456,18 +456,18 @@ include(Packaging)
 ##  custom target for translation generation
 ##
 
-add_custom_target(lupdate
+add_custom_target(lupdate-qt5
    COMMAND ${PROJECT_SOURCE_DIR}/build/gen-qt-projectfile ${PROJECT_SOURCE_DIR} > mscore.pro
-   COMMAND ${QT_LUPDATE_EXECUTABLE} -noobsolete ${PROJECT_BINARY_DIR}/mscore.pro
+   COMMAND lupdate-qt5 -noobsolete ${PROJECT_BINARY_DIR}/mscore.pro
    COMMAND ${PROJECT_SOURCE_DIR}/build/gen-instruments-projectfile ${PROJECT_SOURCE_DIR}/share/instruments > instruments.pro
-   COMMAND ${QT_LUPDATE_EXECUTABLE} -noobsolete ${PROJECT_BINARY_DIR}/instruments.pro
+   COMMAND lupdate-qt5 -noobsolete ${PROJECT_BINARY_DIR}/instruments.pro
    WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
    )
 
-add_custom_target(lrelease
+add_custom_target(lrelease-qt5
    COMMAND ${PROJECT_SOURCE_DIR}/build/gen-qt-projectfile ${PROJECT_SOURCE_DIR} > mscore.pro
    COMMAND ${PROJECT_SOURCE_DIR}/build/gen-qt-projectfile ${PROJECT_SOURCE_DIR}/share/instruments > instruments.pro
-   COMMAND ${QT_LRELEASE_EXECUTABLE} ${PROJECT_SOURCE_DIR}/share/locale/*.ts
+   COMMAND lrelease-qt5 ${PROJECT_SOURCE_DIR}/share/locale/*.ts
    WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
    )
 
